﻿<UserControl x:Class="VAdvantage.Apps.AForms.VInOutGen"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d" xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk" xmlns:my="clr-namespace:SLControls.Controls;assembly=SLControls" xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch"   xmlns:my1="clr-namespace:VAdvantage.Controls">
    
    <Grid>
    <Grid x:Name="LayoutRoot" Background="White" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
        
        <Grid.RowDefinitions>
            <RowDefinition Height="*" />
            <RowDefinition Height="17" />
        </Grid.RowDefinitions>
        <!--<my:VDataGrid AutoGenerateColumns="False" HorizontalAlignment="Stretch" Name="vdgvMaingrid" VerticalAlignment="Stretch" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" Grid.RowSpan="2" Margin="1,2,0,0" />-->
        <my:VTabControl HorizontalAlignment="Stretch" Margin="5,5,5,5" Name="vtabVInOutGen" VerticalAlignment="Stretch" SelectionChanged="vtabVInOutGen_SelectionChanged">
            <sdk:TabItem Header="sel" Name="tabSel" Margin="0" >
                <Grid Name="tabSelect" Margin="0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="*" />
                        <ColumnDefinition Width="Auto" />
                        <ColumnDefinition Width="7*" />
                        <ColumnDefinition Width="2*" />
                        <ColumnDefinition Width="Auto" />
                        <ColumnDefinition Width="7*" />
                        <ColumnDefinition Width="*" />
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="*" />
                        <RowDefinition Height="Auto" />
                        <RowDefinition Height="Auto" />
                    </Grid.RowDefinitions>
                    <my:VLabel Grid.Column="1" Height="Auto" HorizontalAlignment="Right" Margin="5,0" Name="vlblWarehouse" VerticalAlignment="Center" Width="Auto" Content="hello" HorizontalContentAlignment="Right" VerticalContentAlignment="Center" />
                    <my:VLabel Grid.Column="4" Height="Auto" HorizontalAlignment="Right" Margin="5,0" Name="vlblBPartner" VerticalAlignment="Center" Width="Auto" Content="hello" VerticalContentAlignment="Center" HorizontalContentAlignment="Right" />
                    <my:VDataGrid Grid.ColumnSpan="7" HorizontalAlignment="Stretch" Name="vdgvRecords" VerticalAlignment="Stretch" Width="Auto" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" Grid.Row="1" AutoGenerateColumns="False" Margin="0,5,0,0" />
                    <my:VImage Icon="/VAdvantage;component/Images/right_up.png" Grid.Column="5" Grid.ColumnSpan="2" Grid.Row="2" Height="35" HorizontalAlignment="Right" Name="imgBtnOk" VerticalAlignment="Center" Width="35" Click="imgBtnOk_Click_1" Margin="0,5,0,0" Grid.RowSpan="1">
                    </my:VImage>

                    <my:VImage Icon="/VAdvantage;component/Images/cancel_up.png" Grid.Column="5" Grid.ColumnSpan="2" Grid.Row="2" Height="35" HorizontalAlignment="Right" Margin="0,5,38,0" Name="imgBtnCancel" VerticalAlignment="Center" Width="35" Click="imgBtnCancel_Click" Grid.RowSpan="1" />
                </Grid>
            </sdk:TabItem>
            <sdk:TabItem Header="gen" Name="tabGen" Margin="0">
                <Grid Name="vdgvGenerate" Height="Auto" Margin="0,0,0,0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="*" />
                        <ColumnDefinition Width="*" />
                        <ColumnDefinition Width="*" />
                    </Grid.ColumnDefinitions>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="*" />
                        <RowDefinition Height="Auto" />
                    </Grid.RowDefinitions>
                    <Border Grid.ColumnSpan="3" HorizontalAlignment="Stretch" Margin="1,0,0,0" Name="dockPanel1" VerticalAlignment="Stretch" Grid.Row="1" Width="Auto">
                        <Grid>
                        <my:VImage Icon="/VAdvantage;component/Images/right_up.png" Height="35" Name="vimgbtnGenOk" Width="35" toolkit:DockPanel.Dock="Right" Margin="0,5,0,0" IsTabStop="True" HorizontalContentAlignment="Right" HorizontalAlignment="Right" Click="vimgbtnGenOk_Click"></my:VImage>
                        <my:VImage Icon="/VAdvantage;component/Images/Refresh32.png" Name="imgBtnRefresh" Height="35" Width="35" toolkit:DockPanel.Dock="Left" Margin="0,5,0,0" Click="imgBtnRefresh_Click" HorizontalContentAlignment="Center" HorizontalAlignment="Left" />
                        </Grid>
                    </Border>
                    <ScrollViewer HorizontalAlignment="Stretch" Name="scrollViewer1" VerticalAlignment="Stretch" Grid.ColumnSpan="3" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto">
                        <my1:VHtmlTextBlock x:Name="vtxtHtml" VerticalContentAlignment="Center" />
                    </ScrollViewer>
                   
                </Grid>
            </sdk:TabItem>
        </my:VTabControl>
        <my1:VStatusBar Margin="1,0,0,0" x:Name="vlblStatusInfo" HorizontalContentAlignment="Left" Grid.Row="1" Height="17" VerticalAlignment="Bottom" />
    </Grid>
    <Grid x:Name="busyWindow" Opacity=".2" Background="LightGray" Visibility="Collapsed" MouseLeftButtonDown="busyWindow_MouseLeftButtonDown" >
        <TextBlock x:Name="txtBusy" FontSize="20" FontStyle="Italic" Visibility="Collapsed" HorizontalAlignment="Center" Text="Loading...." VerticalAlignment="Center"></TextBlock>
    </Grid>
    </Grid>

</UserControl>
